
import { Column, Model, Table } from 'sequelize-typescript';
import { DataTypes } from "sequelize";

@Table
export class IndicatorDataMonth extends Model {
  @Column({ type: DataTypes.STRING, allowNull: false, comment: "code" })
  indicatorCode: string;

  @Column({ type: DataTypes.FLOAT, comment: "值" })
  value: number;

  @Column({ type: DataTypes.STRING, comment: "父级code" })
  parentIndicatorCode: string;

  @Column({ type: DataTypes.INTEGER, comment: "时间类型" })
  dataTimeType: number;

  @Column({ type: DataTypes.INTEGER, comment: "计算类型" })
  dataCalcType: number;

  @Column({ type: DataTypes.INTEGER, comment: "合计类型" })
  mergeType: number;
}
